.class public Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01;
.super Lcom/estrongs/android/pop/app/scene/show/dialog/style/i;
.source "SceneDialogStyle01.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01$InfoShowSceneDialogStyle01;
    }
.end annotation


# instance fields
.field private c:Landroid/widget/RelativeLayout;

.field private d:Landroidx/appcompat/widget/SwitchCompat;

.field private e:Landroid/widget/TextView;

.field private f:Landroid/widget/ImageView;

.field private g:Landroid/widget/TextView;

.field private h:Landroid/widget/TextView;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/estrongs/android/pop/app/scene/info/show/InfoShowSceneDialog;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/pop/app/scene/show/dialog/style/i;-><init>(Landroid/content/Context;Lcom/estrongs/android/pop/app/scene/info/show/InfoShowSceneDialog;)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01;)Landroidx/appcompat/widget/SwitchCompat;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01;->d:Landroidx/appcompat/widget/SwitchCompat;

    return-object p0
.end method


# virtual methods
.method public a()I
    .locals 1

    const v0, 0x7f0c02f6

    return v0
.end method

.method public a(Landroid/view/View;Lcom/estrongs/android/pop/app/scene/show/dialog/style/f$a;)V
    .locals 3

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/i;->b:Lcom/estrongs/android/pop/app/scene/info/show/InfoShowSceneDialog;

    check-cast v0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01$InfoShowSceneDialogStyle01;

    const v1, 0x7f090be0

    .line 3
    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/RelativeLayout;

    iput-object v1, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01;->c:Landroid/widget/RelativeLayout;

    .line 4
    iget v2, v0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01$InfoShowSceneDialogStyle01;->topBg:I

    if-lez v2, :cond_0

    .line 5
    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    :cond_0
    const v1, 0x7f090b1a

    .line 6
    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroidx/appcompat/widget/SwitchCompat;

    iput-object v1, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01;->d:Landroidx/appcompat/widget/SwitchCompat;

    const/4 v2, 0x1

    .line 7
    invoke-virtual {v1, v2}, Landroidx/appcompat/widget/SwitchCompat;->setChecked(Z)V

    const v1, 0x7f090d25

    .line 8
    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01;->e:Landroid/widget/TextView;

    const v1, 0x7f09053d

    .line 9
    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01;->f:Landroid/widget/ImageView;

    const v1, 0x7f090ba1

    .line 10
    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01;->g:Landroid/widget/TextView;

    const v1, 0x7f0902a6

    .line 11
    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01;->h:Landroid/widget/TextView;

    const v1, 0x7f0901c6

    .line 12
    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    new-instance v1, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01$a;

    invoke-direct {v1, p0, p2}, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01$a;-><init>(Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01;Lcom/estrongs/android/pop/app/scene/show/dialog/style/f$a;)V

    invoke-virtual {p1, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 13
    iget p1, v0, Lcom/estrongs/android/pop/app/scene/info/show/InfoShowScene;->iconId:I

    if-lez p1, :cond_1

    .line 14
    iget-object p2, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01;->f:Landroid/widget/ImageView;

    invoke-virtual {p2, p1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 15
    :cond_1
    iget-object p1, v0, Lcom/estrongs/android/pop/app/scene/info/show/InfoShowScene;->icon:Ljava/lang/String;

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_2

    .line 16
    iget-object p1, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01;->f:Landroid/widget/ImageView;

    iget-object p2, v0, Lcom/estrongs/android/pop/app/scene/info/show/InfoShowScene;->icon:Ljava/lang/String;

    const v1, 0x7f080624

    invoke-static {p1, p2, v1}, Les/qg;->b(Landroid/widget/ImageView;Ljava/lang/String;I)V

    .line 17
    :cond_2
    iget-object p1, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01;->g:Landroid/widget/TextView;

    iget-object p2, v0, Lcom/estrongs/android/pop/app/scene/info/show/InfoShowScene;->title:Ljava/lang/String;

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 18
    iget-object p1, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01;->h:Landroid/widget/TextView;

    iget-object p2, v0, Lcom/estrongs/android/pop/app/scene/info/show/InfoShowScene;->msg:Ljava/lang/String;

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 19
    iget-object p1, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01;->e:Landroid/widget/TextView;

    iget-object p2, v0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01$InfoShowSceneDialogStyle01;->switchTxt:Ljava/lang/String;

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public isEnabled()Z
    .locals 3

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/app/scene/show/dialog/style/i;->isEnabled()Z

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/i;->b:Lcom/estrongs/android/pop/app/scene/info/show/InfoShowSceneDialog;

    instance-of v2, v0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01$InfoShowSceneDialogStyle01;

    if-nez v2, :cond_1

    const-string v0, "========InfoShowSceneDialogStyle01 \u7c7b\u578b\u4e0d\u5339\u914d"

    .line 3
    invoke-static {v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;)V

    return v1

    .line 4
    :cond_1
    check-cast v0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01$InfoShowSceneDialogStyle01;

    .line 5
    iget-object v2, v0, Lcom/estrongs/android/pop/app/scene/info/show/InfoShowScene;->title:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_3

    iget-object v2, v0, Lcom/estrongs/android/pop/app/scene/info/show/InfoShowScene;->msg:Ljava/lang/String;

    .line 6
    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_3

    iget-object v0, v0, Lcom/estrongs/android/pop/app/scene/show/dialog/style/SceneDialogStyle01$InfoShowSceneDialogStyle01;->switchTxt:Ljava/lang/String;

    .line 7
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_2

    goto :goto_0

    :cond_2
    const/4 v0, 0x1

    return v0

    :cond_3
    :goto_0
    const-string v0, "========title\u3001msg\u3001switchTxt\u4e3a\u7a7a"

    .line 8
    invoke-static {v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;)V

    return v1
.end method
